
using System;
using System.Threading;
using GLib;
using Gdk;
using Gtk;
using IrrlichtNETCP;

namespace kinematix
{
	
	public class kToolWindow
	{
		Gtk.Window win;		

		kApplication app;
		
		public kToolWindow(kApplication _app)
		{
		
			app = _app;
			win = new Gtk.Window("kinematiX");
			win.DeleteEvent += new DeleteEventHandler(win_OnDelete);
			
			Gtk.Button button1 = new Gtk.Button(Stock.Edit);
			button1.Clicked += new EventHandler(button1_OnClick);
			win.Add(button1);
			
			win.ShowAll();
	
		}
		
		void Quit()
		{
			app.Quit();
		}
		
		void win_OnDelete(object obj, DeleteEventArgs args)
		{
			Quit();
		}
		
		void button1_OnClick(object obj, EventArgs args)
		{
			new kPythonEditor(app);
		}
		
		
	}
}
